﻿using Microsoft.EntityFrameworkCore;
using Traceability.Domain;

namespace Traceability.Infrastructure
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<User> Users { get; set; }
        public DbSet<UserRole> UserRoles { get; set; }
        public DbSet<Role> Roles { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public DbSet<Products> Products { get; set; }
        /// <summary>
        /// 溯源表
        /// </summary>
        public DbSet<TraceabilityInfo> TraceabilityInfos { get; set; }

        /// <summary>
        /// 养殖免疫信息表
        /// </summary>
        public DbSet<ImmunityInfo> ImmunityInfos { get; set; }
        /// <summary>
        /// 养殖信息实体
        /// </summary>
        public DbSet<BreedingInfo> BreedingInfos { get; set; }
    }
}
